const defaults = require("./config.default");

const commonConfig = {
  secret: "513278y4251hj52312411dx",
  //proxy代理配置
  proxy: {
    "/api": {
      target: "http://localhost:8888",
      pathRewrite: { "^/api": "" },
      changeOrigin: true,
    },
  },
  //项目标题
  title: "vue脚手架",
};

let BASE = null;
if (process.env.NODE_ENV) {
  BASE = require(`./config.${process.env.NODE_ENV}`);
}

module.exports = Object.assign(defaults, BASE, commonConfig);
